package com.tongzhou.tongzhou.link.dao;

import java.util.List;

import com.tongzhou.db.exception.DBException;
import com.tongzhou.tongzhou.link.model.Degree;
import com.tongzhou.tongzhou.link.model.Link;
import com.tongzhou.tongzhou.link.model.SearchLinkCondition;

public interface ILinkDAO {
	public List<Link> getLinktByProId(int proid) throws DBException;
	public List<Degree> getDegreeList(int link_id) throws DBException;
	
	public List<Link> listLink(SearchLinkCondition condition) throws DBException;
	public int addLink(Link link,String itemsVal) throws DBException;
	public void deleteLink(int id) throws DBException;
	public Link getLinkById(int id) throws DBException;
	public void updateLink(Link link,String itemsVal) throws DBException;
	public List<Degree> getDegreeByLinkId(int link_id) throws DBException;
}
